package co.edu.usbcali.ai.ga.factories;

import co.edu.usbcali.ai.ga.ICromosom;
import co.edu.usbcali.ai.ga.Individual;
import co.edu.usbcali.ai.ga.Breed;

public class IndividualFactory {

	public static Individual createAleatoryIndividual(String prefix,Breed p_race) throws InstantiationException, IllegalAccessException{
		Individual individual=new Individual(prefix);
		ICromosom cromosom=CromosomFactory.createAleatoryCromosom(p_race);
		individual.setCromosom(cromosom);
		return individual;
	}

}
